﻿using System;
using CourseSystem.Core.Enum;

namespace CourseSystem.Common.Models
{
    public class UserModel
    {
        public UserTypeEnum UserType { get; set; }

        public string UserName { get; set; }

        public int Id { get; set; }

        /// <summary>
        /// 1负责老师2主讲老师3助教4专家
        /// </summary>
        public int MinType { get; set; }

        public DateTime LoginTime
        {
            get { return _loginTime; }
            set
            {
                _loginTime = value;
            }
        }

        public bool IsExpert { get; set; }

        private DateTime _loginTime = DateTime.Now;
    }
}